<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ResizeJSONElements</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ResizeJSONElements()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>ResizeJSONElements</b></font>(JSONValue, Size)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Resize a JSON value of <a href="jsontype.html">type</a> <font color="#924B72">#PB_JSON_Array</font> so 
that it has the given number of elements. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>JSONValue</i></td>
<td width="90%"> 
 
The JSON value. The value must be of type <font color="#924B72">#PB_JSON_Array</font>. 

 

</td></tr>
<tr><td><i>Size</i></td>
<td> 
 
The new size of the array. This specifies the total number of elements 
(not the index of the highest array element like <a href="../reference/dim.html">Dim</a>). 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>备注</b></p><blockquote>



If new elements are added to the array, they will have the type <font color="#924B72">#PB_JSON_Null</font>. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#3A3966">  ParseJSON</font>(0, "[1, 2, 3, 4, 5]") 
  
<font color="#3A3966">  ResizeJSONElements</font>(<font color="#3A3966">JSONValue</font>(0), 3)
  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">ComposeJSON</font>(0)
  
<font color="#3A3966">  ResizeJSONElements</font>(<font color="#3A3966">JSONValue</font>(0), 10)
  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">ComposeJSON</font>(0)
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="setjsonarray.html">SetJSONArray()</a>, <a href="addjsonelement.html">AddJSONElement()</a>, <a href="removejsonelement.html">RemoveJSONElement()</a>, 
<a href="clearjsonelements.html">ClearJSONElements()</a>, <a href="getjsonelement.html">GetJSONElement()</a>, <a href="jsonarraysize.html">JSONArraySize()</a>, <a href="jsontype.html">JSONType()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=removejsonmember.html>RemoveJSONMember()</a> - <a href="index.html">Json Index</a> - <a href="savejson.html">SaveJSON()</a> -&gt;<br><br>

</body></html>